/**
 * ClassName : PACKAGE_NAME.ArrayTest
 * Desc : TODO
 *
 * @author : LINPQ
 * @date : 2020/12/8 10:02
 */
public class ArrayTest {

    public static void main(String[] args) {
        int[] arrInt =new int[3];
        System.out.println("int型数组只new未给定初始值，此时元素初始值为："+arrInt[0]);
        double[] arrDouble =new double[3];
        System.out.println("double型数组只new未给定初始值，此时元素初始值为："+arrDouble[0]);
        boolean[] arrBoolean = new boolean[3];
        System.out.println("boolean型数组只new未给定初始值，此时元素初始值为："+arrBoolean[0]);
        char[] arrChar =new char[3];
        System.out.println("char型数组只new未给定初始值，此时元素初始值为："+arrChar[0]+"。");
        String[] arrString =new String[3];
        System.out.println("String型数组只new未给定初始值，此时元素初始值为："+arrString[0]+"。");
        System.out.println("String属于类类型，可以代表所有引用数据类型，引用数据类型默认值都为 null");

    }
}
